﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http.Filters;
using System.Net.Http;




namespace LYMesApi.Util
{
    public class CustomerFilterAttribute : ActionFilterAttribute
    {
        public override void OnActionExecuted(HttpActionExecutedContext filterContext)
        {

            var controllerName = filterContext.ActionContext.ControllerContext.RouteData.Values["controller"].ToString();
            var actionName = filterContext.ActionContext.ControllerContext.ControllerDescriptor.ControllerName;
            var Method = filterContext.Request.Method.ToString();
            var Query = filterContext.Request.RequestUri.Query;
            var PathAndQuery = filterContext.Request.RequestUri.PathAndQuery;
            //LogHelp.WriteLog(PathAndQuery);
            LogHelp.WriteOrcale(PathAndQuery);
            base.OnActionExecuted(filterContext);
        }
    }
}